package util;

import java.sql.Date;
import java.text.SimpleDateFormat;

public class CoffeeUtil {
	//작업 시간들
	public static final int MATERIAL_INPUT_TIME = 120;
	public static final int ROSTIONG_TIME = 6000;
	public static final int COOLING_TIME = 2400;
	public static final int GRINDING_TIME = 600;
	public static final int PRESSING_TIME = 600;
	public static final int MIXER_TIME = 3000;
	public static final int BOTTLE_PACKAGING_TIME = 100;
	public static final int BOX_PACKAGING_TIME = 600;
	
	//청소시간
	public static final int CLEAN_TIME = 1200;
	public static final int GRINDER_CLEAN_TIME = 600;
	public static final int PRESSURE_CLEAN_TIME = 600;
	public static final int MIXER_CLEAN_TIME = 1200;
	public static final int BOTTLE_PACKAGE_CLEAN_TIME = 50;
	//작업 무계 - kg단위
	public static final int BEANS_TOTAL_WEIGHT = 10000;
	public static final int ROSTION_WEIGHT = 150;
	public static final int NEW_CROP_SILO_WEIGHT = 500;
	public static final int BIG_BEANS_WEIGHT = 300;
	public static final int ROSTING_TOTAL_WEIGHT = 1000;
	public static final int BIG_BEANS_TOTAL_WEIGHT = 100;
	//불량률
	public static final int FRACTION_DEFECTIVE = 2;
	
	static public void sleep(int millis){
		try {
			Thread.sleep(millis);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	public static String getNow(){
		long time = System.currentTimeMillis();
		SimpleDateFormat dayTime = new SimpleDateFormat("yyyyMMddhhmmss");
		String str = dayTime.format(new Date(time));
		return str;
	}
}
